﻿using System;

namespace VkontakteSharp.Model
{
    public class Place
    {
        [JsonMapping("place_id", JsonMapping.MappingType.Primitive)]
        public long Id { get; set; }
        [JsonMapping("title", JsonMapping.MappingType.Primitive)]
        public string Title { get; set; }
        [JsonMapping("latitude", JsonMapping.MappingType.Primitive)]
        public double Latitude { get; set; }
        [JsonMapping("longitude", JsonMapping.MappingType.Primitive)]
        public double Longitude { get; set; }
        /// <summary>
        /// время добавления места
        /// </summary>
        [JsonMapping("created", JsonMapping.MappingType.Primitive)]
        public DateTime Date { get; set; }
        /// <summary>
        /// дата последнего чекина
        /// </summary>
        [JsonMapping("updated", JsonMapping.MappingType.Primitive)]
        public DateTime Updated { get; set; }
        /// <summary>
        /// число чекинов
        /// </summary>
        [JsonMapping("checkins", JsonMapping.MappingType.Primitive)]
        public int Checkins { get; set; }
        [JsonMapping("type", JsonMapping.MappingType.Primitive)]
        public long TypeId { get; set; }
        [JsonMapping("country_id", JsonMapping.MappingType.Primitive)]
        public long CountryId { get; set; }
        [JsonMapping("city_id", JsonMapping.MappingType.Primitive)]
        public long CityId { get; set; }
        [JsonMapping("address", JsonMapping.MappingType.Primitive)]//not sure
        public string Address { get; set; }
        [JsonMapping("icon", JsonMapping.MappingType.Primitive)]
        public string Icon { get; set; }

        [JsonMapping("distance", JsonMapping.MappingType.Primitive)]
        public long Distance { get; set; }
    }
}